package com.cloud.streamconsumerself.noerror;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * Created by wuxiang on 2019/2/20 17:13
 */
@Slf4j
@Component
public class TestListener2 {

    @StreamListener(TestTopic2.INPUT)
    public void receive(String payload) {
        log.info("Received: " + payload);
        throw new RuntimeException("BOOM!");
    }
}
